<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 
 * @property int $admin_user_id 后台用户ID
 * @property int $user_id 前台用户ID
 * @property string $original_name 原文件名
 * @property string $save_name 保存文件名
 * @property string $save_path 系统完整路径
 * @property string $url 网站url路径
 * @property string $extension 后缀
 * @property string $mime 类型
 * @property int $size 大小
 * @property string $md5 MD5
 * @property string $sha1 SHA1
 * @property int $create_time 创建时间
 * @property int $update_time 更新时间
 * @property int $delete_time 删除时间
 */
class Attachment extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'attachment';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'admin_user_id', 'user_id', 'original_name', 'save_name', 'save_path', 'url', 'extension', 'mime', 'size', 'md5', 'sha1', 'create_time', 'update_time', 'delete_time'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'admin_user_id' => 'integer', 'user_id' => 'integer', 'size' => 'integer', 'create_time' => 'integer', 'update_time' => 'integer', 'delete_time' => 'integer'];
}